package com.stylefeng.guns.modular.flowerType.service.impl;

import com.stylefeng.guns.common.persistence.model.FlowerType;
import com.stylefeng.guns.modular.flowerType.dao.FlowerTypeDao;
import org.springframework.stereotype.Service;
import com.stylefeng.guns.modular.flowerType.service.IFlowerTypeService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * flowerTypeDao
 *
 * @author fengshuonan
 * @Date 2019-07-11 17:38:30
 */
@Service
public class FlowerTypeServiceImpl implements IFlowerTypeService {

    @Resource
    private FlowerTypeDao flowerTypeDao;

    @Override
    public List<Map<String, Object>> showFlowerTypeTable(String condition) {
        return flowerTypeDao.showFlowerTypeTable(condition);
    }

    @Override
    public FlowerType selectFlowerTypeById(Integer fid) {
        return flowerTypeDao.selectFlowerTypeById(fid);
    }

    @Override
    public int updateFlowerType(FlowerType flowerType) {
        return flowerTypeDao.updateFlowerType(flowerType);
    }

    @Override
    public int delFlowerType(Integer fid) {
        return flowerTypeDao.delFlowerType(fid);
    }
}
